package com.etheart.music.service;

import java.util.List;

import org.hibernate.Session;
import org.springframework.transaction.annotation.Transactional;

import com.etheart.model.entity.Singer;

public interface SingerService {

	public  List<Singer> findAll();

	@Transactional
	public  void addSinger(Singer Singer);

	@Transactional
	public  void updateSinger(Singer Singer);

	@Transactional
	public  void deleteSinger(Singer Singer);

	public  Singer findById(Long id);

	public Singer findByNetId(String singerId);

	public long getSingerCount();

	public Session openSession();

	public Singer findByFromUrl(String fromUrl);

	
}